package com.lu.project.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lu.project.model.entity.Device;
import com.lu.project.model.vo.DeviceVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DeviceMapper extends BaseMapper<Device> {

    int deleteByDeviceId(@Param("deviceId") String id);

    @Override
    int insert(Device record);

    Device selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Device record);

    List<DeviceVo> selectByDeviceIds(List<String> list);

   // List<DeviceVo> selectByLocation(List<String> ids, int type);
}
